x86: cap address bits CPUID output
authorJan Beulich <jbeulich@suse.com>
Wed, 11 May 2016 07:46:43 +0000 (09:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 May 2016 07:46:43 +0000 (09:46 +0200)
commita24edf49f5195fc3ec54584e42a6cdef6d248221
tree9c8c644c595d3a60e9afd533175b88aef7fb8344
parent5590bd17c474b3cff4a86216b17349a3045f6158
x86: cap address bits CPUID output

Don't use more or report more to guests than we are capable of
handling.

At once
- correct the involved extended CPUID level checks,
- simplify the code in hvm_cpuid() and mtrr_top_of_ram().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/e820.c
xen/arch/x86/hvm/hvm.c
xen/arch/x86/traps.c
xen/include/asm-x86/processor.h